package com.lbt.javaSE.Alog;

public class BalackRelpace {
    public static void main(String[] args) {
        String s="We are happy.";
        replaceSpace(s);
    }
    public static String replaceSpace(String s) {
        String s2;
        s2=s.replaceAll(" ","%20");
        System.out.println(s2);
        return s2;
    }
}
